package router

import (
	"github.com/gin-gonic/gin"
	. "webGin/controller"
	m "webGin/middleware"
	)

func InitRouter() *gin.Engine  {
	router := gin.Default()

	router.GET("/users",m.Auth(),Lists)
	router.GET("/refresh",Refresh)
	router.POST("/register",Register)
	router.POST("/login",Login)
	return router
}